﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace SqlSugarMod.Entities;
public class CodeFirstTable1
{
    [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
    public int Id
    {
        get; set;
    }
    public string Name
    {
        get; set;
    }
    //ColumnDataType 一般用于单个库数据库，如果多库不建议用
    //[SugarColumn(ColumnDataType = "Nvarchar(255)")]
    public string Text
    {
        get; set;
    }
    //[SugarColumn(IsNullable = true)]//可以为NULL
    //public DateTime CreateTime
    //{
    //    get; set;
    //}
}